package com.launch.wlfw.service;

import com.github.pagehelper.PageInfo;
import com.launch.wlfw.pojo.Admin;

public interface AdminService {

    /**
     * 根据用户名和密码查询用户信息
     */
    Admin queryUserByNameAndPassword(String username,String password);

    PageInfo<Admin> findByName(Admin admin, Integer pageNum, Integer pageSize);

    Integer addAdminList(Admin admin);

    Integer deleteAdminList(String ids);

    Integer updateAdminPassword(Integer id,String oldPwd,String newPwd);

    Admin findAdminById(Integer id);
}
